from django.db import models


class UserInfo(models.Model):
    name = models.CharField(verbose_name='用户名', max_length=32)
    password = models.CharField(verbose_name='密码', max_length=32)
    token = models.OneToOneField(verbose_name='token', to='Token', on_delete=models.CASCADE, default=None, blank=None)


class Token(models.Model):
    token = models.CharField(verbose_name='token', max_length=128)
